﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using FlowgraphViewer.Model;
using System.Collections.Generic;

namespace FlowgraphViewer.Services
{
    public class NodeService
    {


        private static NodeService _instance;

        public static NodeService Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new NodeService();
                }
                return _instance;
            }
        }

        public IList<FlowNode> Nodes { get; set; }


        private NodeService()
        {
            List<FlowNode> nodes = new List<FlowNode>();


            nodes.AddRange(CrysisNodeService.Instance.RegisterNodes());


            Nodes = nodes;
        }
    }
}
